package com.zhuojy.equity.mall.admin.common.entity.po.car;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * (TCarEtcConsume)表实体类
 *
 * @author makejava
 * @since 2024-04-12 09:36:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_car_etc_consume")
public class TCarEtcConsumePO implements Serializable {

    private static final long serialVersionUID = 4913551469459837565L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 卡号
    */
    private Integer consumeId;

    /**
    * 车牌号
    */
    private Integer consumeNumber;

    /**
    * 类型 0道路收费 1停车费
    */
    private String consumeType;

    /**
    * 消费金额
    */
    private String consumeMoney;

    /**
    * 交易日期
    */
    @JsonFormat(pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate consumeTime;

    /**
    * 交易地点
    */
    private String consumeSite;

    /**
    * 备注
    */
    private String consumeRambak;
    /**
     * 车牌号
     */
    @TableField(exist = false)
    private String carNumber;
    /**
     * 卡号
     */
    @TableField(exist = false)
    private String etcId;
    /**
     * 类型
     */
    @TableField(exist = false)
    private String etcType;
}
